package org.smile.homework01.kevin.Weapon;

public class Detect {         //检测
    private static final Detect instance = new Detect();
    private Detect(){}

    public static Detect getInstance(){
        return instance;
    }

    public void begin(){
        System.out.println("开始检测");
    }
    public void end(){
        System.out.println("检测完成");
    }

    public void detect(){
        System.out.println("目标检测中");
    }

//    private int choice = (int) (Math.random() *10 + 1);
    public boolean isDetect(int choice){

    switch(choice){
        case 1:
            case 2:
                case 3:
                    case 4:
                        case 5: return true;
                        default: return false;
    }}
}
